package com.snopy.designPattern.create.prototype;

import lombok.Getter;
import lombok.Setter;

/**
 * @author snopy
 * @version 1.0.0
 * @classname Address
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/01 21:37
 */
@Setter
@Getter
public class Address implements Cloneable{
    private String concact;
    private String postCode;
    private String province;
    private String city;
    private String county;
    private String town;
    private String street;
    private String houseNum;

    @Override
    public String toString() {
        return "Address{" +
                "concact='" + concact + '\'' +
                ", postCode='" + postCode + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", town='" + town + '\'' +
                ", street='" + street + '\'' +
                ", houseNum='" + houseNum + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
